<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd

">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="my" uri="http://www.trkj.com/tr1702/tags" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>求职人员主数据</title>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"/>"></script>
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/default/easyui.css"/>" />
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/icon.css"/>" />

<style type="text/css">
	.kontge{
		padding-right: 10px;
	}
</style>
	
</head>

<body>
	<script type="text/javascript">
		/*删除*/
		function jsr_dlt(jsrId){
	 		$.messager.confirm('确认', '您确定要删除吗？', function(v){
	 			if(v){
	 				$.post("hr_jsr_form_dlt", {jsrId:jsrId}, function(){
						$('.jsr_datagrid_table').datagrid('reload');
					});
	 			}
				
			});
	 	}
		/*操作图标*/
		var jsr_Formatter = function(value,row,index){
			 var  del="";
			<my:g id="119"> del = "<a class='easyui-linkbutton cell_btn_del' onclick='jsr_dlt(" + row.jsrId + ")'>删除</a>";</my:g>
			return del; 
		}
		/* 操作图标*/
		$(".jsr_datagrid_table").datagrid({onLoadSuccess: function(){
			$(".cell_btn_del").linkbutton({height:18,plain:true});
		}});
	
	
	
	
	
	
		$(function() {
			/* 点击添加进入添加面板 */
			$(".jsmd_add2").linkbutton({onClick : function() {
				$(".jsmd_trainhomepage2").panel({href:"hr_jsmd_add"});
			}});
			
			
			<my:g id="119">
			$(".jsmd_datagrid_table").datagrid({
				onDblClickRow:function(rowIndex){//鼠标双击事件
			        $(".jsmd_datagrid_table").datagrid("selectRow",rowIndex);//选中此行
			        var currentRow = $(".jsmd_datagrid_table").datagrid("getSelected");//获得选中行的信息
			       /*  var positionId = new Object(currentRow['position']).positionId;
			        var recplanId = new Object(currentRow['recruitplan']).recplanId; */
					$(".jsmd_trainhomepage2").panel({href:"hr_jsmd_info?jsmdId="+currentRow["jsmdId"]});

			    }
			});
			</my:g>
			
			
		});
		$('.search_a').linkbutton({
			onClick : function() {
				$('.jsmd_datagrid_table').datagrid({ url:'lzs_Jobseekersmasterdatechaxun?text='+$('#search_input_a').val() });//重新指定url
                alert(text)
				$('.jsmd_datagrid_table').datagrid('load',{  
                });
			}
		});
		
		
	</script>
	<div class="easyui-panel jsmd_trainhomepage2"  data-options="fit:true,border:false">
		<!-- 按钮 -->
		<div id="bt_jsmd">
		<my:g id="117">	<a id="insert" class="easyui-linkbutton jsmd_add2" data-options="iconCls:'icon-add',text:'新增',width:80"></a></my:g>
			<span class="kontge"></span>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-print'"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-reload'"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-print'"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-reload'"></a>
	
	       <input id="search_input_a" class="easyui-textbox " data-options="width:120,labelWidth:30"> 
	     <a class="easyui-linkbutton search_a" data-options="iconCls:'icon-search',text:'搜索'"></a>
		</div>
		<!-- 数据表 -->
		<table class="easyui-datagrid jsmd_datagrid_table"  data-options="
			fit:true,
			singleSelect:true,
			nowrap:true,
			toolbar:'#bt1',
			rownumbers:true,
			url:'hr_jsmd_find',
			<!-- 分页 -->
			pagination:true,
			<!-- ulr: -->
			pageSize:5,
			pageList:[5,10,15]
		">
			<thead>
				<tr>
	

<!-- 电键
姓名
职位
招聘结果
评价
总分
面试次数
是否通知
是否面试
是否培训
是否录用
 -->
					<th data-options="field:'jsmdId',width:100">电键</th>
					<th data-options="field:'jsmdName',width:160">姓名</th>
					
				</tr>
			</thead>
			<tbody>
				
				
			</tbody>
		</table>
	</div>
</body>
</html>
